package com.youhui.weixin.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.gson.annotations.Expose;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

/**
 * Created by https://github.com/kuangcp on 17-9-26  下午2:43
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Goods {
    @Id
    @Expose
    private Long goodsId;
    @Expose
    private String name;
    // 分类要靠匹配
    private Integer typeId;
    @Expose
    private String image;
    @Expose
    private Float price;
    // 要匹配得到折扣价格
    private Integer discount;
    private String discountDetail;//折扣的真实信息
    private Float priceDiscount;//折扣后的价格，如果是满多少减就是原价
    private String link;//商品优惠券链接
    private String mainKey;
    private Integer alreadyBuy;
    private String details; //商品详情页
    private Date importTime;//文件导入日期
    private Date startTime;//优惠券起始日期
    private Date endTime;//失效日期



}
